package com.sxt.bus.vo;

import com.sxt.bus.entity.Outport;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class OutportVo extends Outport {
    private Integer page = 1;

    private Integer limit = 10;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public OutportVo() {
    }

    public OutportVo(Integer id, Integer providerid, String paytype, Date outputtime, String operateperson, Double outportprice, Integer number, String remark, Integer goodsid, Integer page, Integer limit, Date startTime, Date endTime) {
        super(id, providerid, paytype, outputtime, operateperson, outportprice, number, remark, goodsid);
        this.page = page;
        this.limit = limit;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public OutportVo(Integer id, Integer providerid, String paytype, Date outputtime, String operateperson, Double outportprice, Integer number, String remark, Integer goodsid, String providername, String goodsname, String size, Integer page, Integer limit, Date startTime, Date endTime) {
        super(id, providerid, paytype, outputtime, operateperson, outportprice, number, remark, goodsid, providername, goodsname, size);
        this.page = page;
        this.limit = limit;
        this.startTime = startTime;
        this.endTime = endTime;
    }
}
